package com.example.collection.controller;


import com.example.collection.entity.Teacher;
import com.example.collection.mapper.TeacherMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author can
 * @since 2022-12-16
 */
@RestController
@RequestMapping("/teacher")
public class TeacherController {

    @Resource
    private TeacherMapper teacherMapper;

    @GetMapping("/test")
    public Teacher getTea(Integer tId)
    {
        return teacherMapper.teacherAndStu(tId);
    }
}

